set(wizard_SRCS
    main.cpp
    bluewizard.cpp
    wizardagent.cpp
    debug_p.cpp

    pages/discover.cpp
    pages/connect.cpp
    pages/pairing.cpp
    pages/fail.cpp
    pages/success.cpp
)

ki18n_wrap_ui(wizard_SRCS
            pages/discover.ui
            pages/connect.ui
            pages/pairing.ui
            pages/fail.ui
            pages/success.ui
)

add_executable(bluedevil-wizard ${wizard_SRCS})

target_link_libraries(bluedevil-wizard
    Qt::Widgets
    Qt::DBus
    KF5::I18n
    KF5::CoreAddons
    KF5::DBusAddons
    KF5::Notifications
    KF5::WidgetsAddons
    KF5::BluezQt)

install(TARGETS bluedevil-wizard ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES org.kde.bluedevilwizard.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES pin-code-database.xml DESTINATION ${KDE_INSTALL_DATADIR}/bluedevilwizard)
